<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <link rel="shortcut icon" href="../images/favicon.ico">
    <link rel="apple-touch-icon-precomposed" href="../images/apple-touch-icon.png">
    <title>slider</title>
    <link rel="stylesheet" href="../scripts/lib/seedsui/seedsui.min.css">
</head>

<body ontouchstart="">
    	<header>
            <div class="titlebar">
                <a class="titlebar-button" href="javascript:back()">
                    <i class="icon icon-arrowleft"></i>
                </a>
                <h1 class="titlebar-title">滑动广告</h1>
            </div>
        </header>

        <!--主体-->
    	<article>
            <!--轮播-->
            <div class="slider-container" id="carousel1">
                <div class="slider-wrapper">
                    <div class="slider-slide">
                        <img class="slide-banner" src="../images/banner.jpg"/>
                        <div class="slide-title">
                            <i class="icon icon-pic slide-title-icon"></i>
                            <span class="nowrap slide-title-font" style="margin-right: 20px;">
                                新闻标题1新闻标题1新闻标题1新闻标题1新闻标题1新闻标题1
                            </span>
                        </div>
                    </div>
                    <div class="slider-slide">
                        <img class="slide-banner" src="../images/banner.jpg"/>
                        <div class="slide-title">新闻标题2</div>
                    </div>
                    <div class="slider-slide" style="background-color: yellow;">
                    </div>
                </div>
                <div class="slider-pagination"></div>
            </div>
            <!--轮播2-->
            <p class="sliver">一屏3条</p>
            <div class="slider-container" id="carousel2">
                <div class="slider-wrapper">
                    <div class="slider-slide">
                        <img class="slide-banner" src="../images/banner.jpg"/>
                        <div class="slide-title">新闻标题1</div>
                    </div>
                    <div class="slider-slide">
                        <img class="slide-banner" src="../images/banner.jpg"/>
                        <div class="slide-title">新闻标题2</div>
                    </div>
                    <div class="slider-slide">
                        <img class="slide-banner" src="../images/banner.jpg"/>
                        <div class="slide-title">新闻标题3</div>
                    </div>
                    <div class="slider-slide">
                        <img class="slide-banner" src="../images/banner.jpg"/>
                        <div class="slide-title">新闻标题4</div>
                    </div>
                    <div class="slider-slide">
                        <img class="slide-banner" src="../images/banner.jpg"/>
                        <div class="slide-title">新闻标题5</div>
                    </div>
                </div>
                <div class="slider-pagination"></div>
            </div>
        </article>
	
    <script src="../scripts/lib/seedsui/seedsui.min.js"></script>
    <!--Exmobi能力-->
    <!--<script src="../scripts/lib/exmobi/exmobi.js"></script>-->
    <script type="text/javascript">
        window.onload=function(){
            var s1=new Slider("#carousel1",{
                "pagination":".slider-pagination",
                "loop":true
            });
            var s2=new Slider("#carousel2",{
                "pagination":".slider-pagination",
                "slidesPerView":"3",
                "loop":true
            });
            console.log(s1.height);
        }
        //定义exmobi返回
        function back(){history.go(-1);}
    </script>
</body>
</html>